package IMIC.NGUYENVANTINH.OOP.LEVEL2.EX5;

public class Models {

	// Tinh ti le phan tram gia co phieu thay doi hum truoc voi hien tai.
	
	public double changePercent(Stock stock) {
		double P = ((stock.getPreviousClosingPrice() - stock.getCurrentPrice())/
				(stock.getPreviousClosingPrice() + stock.getCurrentPrice()))*100.0;
		
		return P; 
	}

}
